package com.eep.inventory;

public abstract class InventoryItem {
    private String productId;
    private String description;
    private double cost;
    private int unitsAvailable;

    public int getUnitsAvailable() {
        return unitsAvailable;
    }

    public void setUnitsAvailable(int unitsAvailable) {
        this.unitsAvailable = unitsAvailable;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Override
    public String toString() {
        return String.format("%s : %s : $%.2f : %d units in stock",
                productId, description, cost, unitsAvailable);
    }


    
}
